<?php
	/*
	* @author Nguyen Xuan Hong
	* @copyright 2011
	*/
	
	require_once('../includes/admin.tbl.php');

	


	$pClsAdmin = new clsAdminTable();
	$pClsAdmin->setFormTpl($pClsAdmin->getfile('templates/accountinfo.html'));

	if($_GET['mode'] == 'admincp')
	{	
		// Page config mode
		// Redefine insert
		$pClsAdmin->loadDB();
		if($pClsAdmin->avaibleSubmit())
		{
			$pClsAdmin->loadBuffer();
			//$admin->updateDB();
			$pClsAdmin->updateInfo($pClsAdmin->value('username'),$pClsAdmin->value('password'));
			echo acpredirect();
		}
		else
		{
			echo $pClsAdmin->createForm('Tài khoản đăng nhập');
		}
	}
	
	
?> 














  